﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace QInfrastructure.Interfaces
{
    public interface TSysQCache : TService
    {
        public void RemoveQCache(string key);
        public void AddOrUpdateQCache<T>(string key, List<T> info);

        public void AddQCacheAction(string key, Action action);

       

        public List<T> GetEntityFromDb<T>(Expression<Func<T, bool>> express = default) where T : class, new();

        public void RemoveQCache<T>();
        public void AddOrUpdateQCacheAction<T>(List<T> lst);
        public List<T> GetQCache<T>();

    }
}
